package com.yida.gwj.vote.outside.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Arrays;

/**
 * @author lqq
 * @date 2023-03-22
 */
@ApiModel("投票房屋选择")
public class GwjVoteHouseSelectRequest implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票ID")
	@NotNull(message = "请求参数有误[voteId]为空")
	private Long voteId;

	@ApiModelProperty("投票房屋ID集合")
	@NotEmpty(message = "请选择房屋")
	private Long[] voteHouseIds;

	public Long getVoteId() {
		return voteId;
	}

	public void setVoteId(Long voteId) {
		this.voteId = voteId;
	}

	public Long[] getVoteHouseIds() {
		return voteHouseIds;
	}

	public void setVoteHouseIds(Long[] voteHouseIds) {
		this.voteHouseIds = voteHouseIds;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteHouseSelectRequest{");
		sb.append("voteId=").append(voteId);
		sb.append(", voteHouseIds=").append(voteHouseIds == null ? "null" : Arrays.asList(voteHouseIds).toString());
		sb.append('}');
		return sb.toString();
	}
}
